package org.gourpg.model.menu;

/**
 * 菜单与路由关系实体
 */
public class MenuRouteRel {
    /**
     * 菜单ID，菜单的主键
     */
    private Integer menuId;

    /**
     * 路由路径
     */
    private String routePath;

    public MenuRouteRel() {
    }

    public Integer getMenuId() {
        return this.menuId;
    }

    public String getRoutePath() {
        return this.routePath;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public void setRoutePath(String routePath) {
        this.routePath = routePath;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MenuRouteRel)) return false;
        final MenuRouteRel other = (MenuRouteRel) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$menuId = this.getMenuId();
        final Object other$menuId = other.getMenuId();
        if (this$menuId == null ? other$menuId != null : !this$menuId.equals(other$menuId)) return false;
        final Object this$routePath = this.getRoutePath();
        final Object other$routePath = other.getRoutePath();
        if (this$routePath == null ? other$routePath != null : !this$routePath.equals(other$routePath)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MenuRouteRel;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $menuId = this.getMenuId();
        result = result * PRIME + ($menuId == null ? 43 : $menuId.hashCode());
        final Object $routePath = this.getRoutePath();
        result = result * PRIME + ($routePath == null ? 43 : $routePath.hashCode());
        return result;
    }

    public String toString() {
        return "MenuRouteRel(menuId=" + this.getMenuId() + ", routePath=" + this.getRoutePath() + ")";
    }
}
